$(document).ready(function(){ 
  var h4bn = new Swiper('.bn', {
    //loop: true,
    //autoplay: true,
    noSwiping: true,
    lazy: { 
        loadPrevNext: true,
    },
    pagination: {
        el: '.shop-pag',
        clickable: true,
         dynamicBullets: true,
    },
    speed: 1000,
    //autoplay: '4000',
    // 如果需要前进后退按钮
    observer: true, //修改swiper自己或子元素时，自动初始化swiper
    observeParents: true, //修改swiper的父元素时，自动初始化swiper
}) 
var a3bn = new Swiper('.a3-bn', {
  //loop: true,
  autoplay: true,
  noSwiping: true,
  pagination: {
      el: '.a3-pag',
      clickable: true,
  },
   lazy: {
      loadPrevNext: true,
  },
   spaceBetween: 0,
  speed: 1000,
  slideToClickedSlide: true,
  slidesPerView: 4,
  observer: true, //修改swiper自己或子元素时，自动初始化swiper
  observeParents: true, //修改swiper的父元素时，自动初始化swiper
  breakpoints: { 
    320: {  //当屏幕宽度大于等于320
      slidesPerView: 2,
      spaceBetween: 10
    },
    580: {  //当屏幕宽度大于等于768 
      slidesPerView: 2,
      spaceBetween: 20
    },
    1280: {  //当屏幕宽度大于等于1280
      slidesPerView: 4,
      spaceBetween: 10
    }
  }
})


})